<template>
    <div class="card">
        <h3>{{type}}</h3>
        <slot :foods="foods" msg="hello" >等待填充</slot>
    </div>
</template>

<script>
export default {
    name: 'Category',
    props: ['type'],
    data() {
        return {
        foods: ['烧烤', '奶茶', '湘菜', '粤菜'],
        }
    },
}
</script>

<style scoped>

.container .card {
    width: 200px;
    height: 300px;
    background-color: skyblue;
}
.container .card h3 {
    text-align: center;
    background-color: orange;
}
</style>